import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

/// 间隔
class Box {
  /// 水平间隔
  static hBox(double boxWidth) {
    return SizedBox(
      width: boxWidth.w,
    );
  }

  static Widget hBox3 = SizedBox(width: 3.w);
  static Widget hBox5 = SizedBox(width: 5.w);
  static Widget hBox6 = SizedBox(width: 6.w);
  static Widget hBox7 = SizedBox(width: 7.w);
  static Widget hBox10 = SizedBox(width: 10.w);
  static Widget hBox12 = SizedBox(width: 12.w);
  static Widget hBox15 = SizedBox(width: 15.w);
  static Widget hBox20 = SizedBox(width: 20.w);
  static Widget hBox30 = SizedBox(width: 30.w);
  static Widget hBox50 = SizedBox(width: 50.w);

  /// 垂直间隔
  static vBox(double boxHeight) {
    return SizedBox(
      height: boxHeight.w,
    );
  }

  static Widget vBox3 = SizedBox(height: 3.w);
  static Widget vBox5 = SizedBox(height: 5.w);
  static Widget vBox10 = SizedBox(height: 10.w);
  static Widget vBox12 = SizedBox(height: 12.w);
  static Widget vBox14 = SizedBox(height: 14.w);
  static Widget vBox15 = SizedBox(height: 15.w);
  static Widget vBox20 = SizedBox(height: 20.w);
  static Widget vBox25 = SizedBox(height: 25.w);
  static Widget vBox30 = SizedBox(height: 30.w);
  static Widget vBox35 = SizedBox(height: 35.w);
  static Widget vBox40 = SizedBox(height: 40.w);
  static Widget vBox45 = SizedBox(height: 45.w);
  static Widget vBox50 = SizedBox(height: 50.w);

  static Widget getHGap(double w) {
    return SizedBox(width: w);
  }

  static Widget getVGap(double h) {
    return SizedBox(height: h);
  }
}
